import http from '@/utils/http'

/** 获取设备数据统计-接口 /operation/statistics/get
 * @param machineId 设备id string
 */
export const getMachineDataApi = (params) => {
  return http({
    method: 'get',
    url: '/operation/statistics/get',
    params,
  })
}

/**
 * 获取用户所有的设备信息-接口 /operation/machine/list
 */
export const getMachineListAllApi = (params) => {
  return http({
    method: 'get',
    url: '/operation/machine/list',
    params,
  })
}
